package com.hrt.datasender.datadao.model;

import java.util.Date;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

public class BcDeviceMonitorParamModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    public static String tableName = "BC_DEVICE_MONITOR_PARAM";

    public static IField id = new Field(BcDeviceMonitorParamModel.class, "id", FieldType.String, true);

    public static IField paramCodeBus = new Field(BcDeviceMonitorParamModel.class, "PARAM_CODE_BUS", FieldType.String,
            false);

    public static IField paramCodePro = new Field(BcDeviceMonitorParamModel.class, "PARAM_CODE_PRO", FieldType.String,
            false);

    public static IField paramName = new Field(BcDeviceMonitorParamModel.class, "PARAM_NAME", FieldType.String, false);

    public static IField comNum = new Field(BcDeviceMonitorParamModel.class, "COM_NUM", FieldType.String, false);

    public static IField deviceId = new Field(BcDeviceMonitorParamModel.class, "DEVICE_ID", FieldType.String, false);

    public static IField unit = new Field(BcDeviceMonitorParamModel.class, "UNIT", FieldType.String, false);

    public static IField rangeUp = new Field(BcDeviceMonitorParamModel.class, "RANGE_UP", FieldType.Double, false);

    public static IField rangeDown = new Field(BcDeviceMonitorParamModel.class, "RANGE_DOWN", FieldType.Double, false);

    public static IField alarmUp = new Field(BcDeviceMonitorParamModel.class, "ALARM_UP", FieldType.Double, false);

    public static IField alarmDown = new Field(BcDeviceMonitorParamModel.class, "ALARM_DOWN", FieldType.Double, false);

    public static IField numPoint = new Field(BcDeviceMonitorParamModel.class, "NUM_POINT", FieldType.String, false);

    public static IField analogUp = new Field(BcDeviceMonitorParamModel.class, "ANALOG_UP", FieldType.Double, false);

    public static IField analogDown = new Field(BcDeviceMonitorParamModel.class, "ANALOG_DOWN", FieldType.Double,
            false);

    public static IField createtime = new Field(BcDeviceMonitorParamModel.class, "CREATETIME", FieldType.DateTime,
            false);

    public static IField createtimeText = new Field(BcDeviceMonitorParamModel.class, "CREATETIME_TEXT",
            FieldType.String, false);

    public void setId(String value) {
        setFieldValue(id.getFieldName(), value);
    }

    public String getId() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.id.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setParamCodeBus(String value) {
        setFieldValue(paramCodeBus.getFieldName(), value);
    }

    public String getParamCodeBus() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.paramCodeBus.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setParamCodePro(String value) {
        setFieldValue(paramCodePro.getFieldName(), value);
    }

    public String getParamCodePro() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.paramCodePro.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setParamName(String value) {
        setFieldValue(paramName.getFieldName(), value);
    }

    public String getParamName() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.paramName.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setComNum(String value) {
        setFieldValue(comNum.getFieldName(), value);
    }

    public String getComNum() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.comNum.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setDeviceId(String value) {
        setFieldValue(deviceId.getFieldName(), value);
    }

    public String getDeviceId() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.deviceId.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setUnit(String value) {
        setFieldValue(unit.getFieldName(), value);
    }

    public String getUnit() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.unit.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setRangeUp(Double value) {
        setFieldValue(rangeUp.getFieldName(), value);
    }

    public Double getRangeUp() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.rangeUp.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setRangeDown(Double value) {
        setFieldValue(rangeDown.getFieldName(), value);
    }

    public Double getRangeDown() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.rangeDown.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setAlarmUp(Double value) {
        setFieldValue(alarmUp.getFieldName(), value);
    }

    public Double getAlarmUp() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.alarmUp.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setAlarmDown(Double value) {
        setFieldValue(alarmDown.getFieldName(), value);
    }

    public Double getAlarmDown() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.alarmDown.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setNumPoint(String value) {
        setFieldValue(numPoint.getFieldName(), value);
    }

    public String getNumPoint() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.numPoint.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setAnalogUp(Double value) {
        setFieldValue(analogUp.getFieldName(), value);
    }

    public Double getAnalogUp() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.analogUp.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setAnalogDown(Double value) {
        setFieldValue(analogDown.getFieldName(), value);
    }

    public Double getAnalogDown() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.analogDown.getFieldName());
        Double result = getValueConver().converToDouble(value);
        return result;
    }

    public void setCreatetime(Date value) {
        setFieldValue(createtime.getFieldName(), value);
    }

    public Date getCreatetime() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.createtime.getFieldName());
        Date result = getValueConver().converToDate(value);
        return result;
    }

    public void setCreatetimeText(String value) {
        setFieldValue(createtimeText.getFieldName(), value);
    }

    public String getCreatetimeText() {
        Object value = getFieldValue(BcDeviceMonitorParamModel.createtimeText.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public String getTableName() {
        return tableName;
    }

    public boolean isNeedCache() {
        return false;
    }

}